package com.suptrack.service;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import com.suptrack.dao.ZoneDao;
import com.suptrack.entity.Car;
import com.suptrack.entity.Zone;

@Stateless
public class ZoneService {
	@EJB
	ZoneDao zonedao;

	public void addZoneService(Zone _zone) {
		zonedao.addZone(_zone);
	}

	public void deletZonebyId(long id) {
		zonedao.deleteZonebyId(id);
	}
	
	public void deleteZoneService(Zone _zone){
		zonedao.deleteZone(_zone);
	}
	public Zone getZoneByIdService(long id)
	{
		return zonedao.getZoneInfo(id);
	}
}
